import axios from "axios";
let request = axios.create({
    // baseURL: "https://m.10010.com",
    baseURL: "/10010",
    withCredentials: true
});
export interface SendCaptchaType {
    phoneVal: number | string;
    type?: number;
}
export const sendCaptcha = (data: SendCaptchaType) => {
    return request({
        url: "/god/AirCheckMessage/sendCaptcha",
        method: "POST",
        data: { ...data, type: 21 },
    });
};
export interface FlowExchangeType {
    number: number | string;
    captcha: number;
    type?: number;
}
export const flowExchange = (params: FlowExchangeType) => {
    return request({
        url: "/god/qingPiCard/flowExchange",
        params: { ...params, type: 21 },
    });
};
